<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 250px;
            height: 250px;
            background-color: pink;
            margin: 400px auto;
            position: relative;
           
        }
        img{
            width: 100%;
            height: 100%;
            position: absolute;
            /* 谁做动画给谁写过度动画 */
            transition: all 0.6s;
            transform-origin: right top;
        }
        div:hover img:nth-child(1){
            transform: rotate(72deg);
        }

        div:hover img:nth-child(2){
            transform: rotate(144deg);
        }

        div:hover img:nth-child(3){
            transform: rotate(216deg);
        }

        div:hover img:nth-child(4){
            transform: rotate(288deg);
        }


        div:hover img:nth-child(5){
            transform: rotate(360deg);
        }
        
    </style>
</head>

<body>
    <div>
        <img src="./images/5.jpg" alt="">
        <img src="./images/4.jpg" alt="">
        <img src="./images/3.jpg" alt="">
        <img src="./images/2.jpg" alt="">
        <img src="./images/1.jpg" alt="">
    </div>
</body>

</html>